#!/bin/bash
#
# Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
#
# SPDX-License-Identifier: GPL-2.0-only

CURDIR=$(dirname $0)
TESTDIR=${CURDIR}/../../..

source $TESTDIR/utils/utils.sh

if [ ! -x "$CURDIR/.libs/libfoo.so" ]; then
	diag "No shared object generated. Skipping all tests."
	exit 0
fi

export LTTNG_TOOLS_HAVE_DLMOPEN=@HAVE_DLMOPEN@

start_lttng_sessiond_notap

python3 ${CURDIR}/test_ust-dl.py

stop_lttng_sessiond_notap
